package com.blb.examsystem.dao;


import com.blb.common.entity.QuestionSet;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionSetDao {
    //数据总数
    int selectCount();

    //分页
    List<QuestionSet> selectLimit(@Param("start") int start, @Param("length")int length);

    //按标题查询的总数
    int selectCountByTitle(String title);

    //按标题查询的分页
    List<QuestionSet> selectLimitByTitle(@Param("title")String title, @Param("start")int start, @Param("length")int length);

    //添加
    int insertQuestionSet(QuestionSet questionSet);

    //按id查找
    List<QuestionSet> selectById(int id);

    //更新
    int updateQuestionSet(QuestionSet questionSet);

    //删除
    int deleteQuestionSet(int id);
}
